#实际参数个数不同
class Stu:
    def info(self,n,m,*p):
        self.name=n
        self.num=m
        self.other=p
        print('姓名:',self.name)
        print('编号:',self.num)
        self.l=len(self.other)
        if self.l==0:
            print('其他信息：无')
        else:
            print('其他信息：')
            for item in self.other:
                print(item)
s=Stu()
s.info('张三','A0001')
s.info('小明','A0002','河北','男','138*****9099')
